<%@ page import="stravel.City" %>



        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="name">
          <g:message code="city.name.label" default="Name" />
          <span class="required-indicator">*</span>
        </label>
        <div class="col-sm-10">
              <g:textField name="name" required="" value="${cityInstance?.name}"/>

        </div>
  </div>

        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="parent">
          <g:message code="city.parent.label" default="Parent" />
          
        </label>
        <div class="col-sm-10">
              <g:select id="parent" name="parent.id" from="${stravel.Location.list()}" optionKey="id" value="${cityInstance?.parent?.id}" class="many-to-one" noSelection="['null': '']"/>

        </div>
  </div>

        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="childs">
          <g:message code="city.childs.label" default="Childs" />
          
        </label>
        <div class="col-sm-10">
              

        </div>
  </div>

        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="hotels">
          <g:message code="city.hotels.label" default="Hotels" />
          
        </label>
        <div class="col-sm-10">
              
<ul class="one-to-many">
<g:each in="${cityInstance?.hotels?}" var="h">
    <li><g:link controller="hotel" action="show" id="${h.id}">${h?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="hotel" action="create" params="['city.id': cityInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'hotel.label', default: 'Hotel')])}</g:link>
</li>
</ul>


        </div>
  </div>

